//
//  SGCorePayment+UnionPay.h
//  smartGas
//
//  Created by chen on 2017/11/20.
//  Copyright © 2017年 chen. All rights reserved.
//

#import "SGCorePayment.h"

@interface SGCorePayment (UnionPay)


/**
  银联支付测试

 @param controller 当前控制器
 */
+ (void)unionPaymentTestWithViewController:(UIViewController *)controller DEPRECATED_MSG_ATTRIBUTE("测试使用");;



/**
 银联支付

 @param tn 通过接口获取到的tn
 @param controller 当前控制器
 */
+ (void)startPaymentWithTN:(NSString *)tn
            viewController:(UIViewController *)controller;



//银联生成订单
+ (void)unionPayGeneratePaymentWithUserId:(NSString *)userId
                                   amount:(NSString *)amount
                                     type:(SGCorePaymentType)paymentType
                                goodsType:(SGCorePaymentGoodsType)goosType
                               relationId:(NSString *)relationId
                                  success:(void(^)(NSString *paymentTN,NSString *des))success
                                   failed:(void(^)(NSError *error, NSString *des))failed;


@end

